#include"comm.hpp"
int main()
{
  //直接打开对应的管道文件
  int wfd=open(fifoname.c_str(),O_WRONLY);
  if(wfd<0)
  {
    std::cout<<errno<<":"<<strerror(errno)<<std::endl;
    return 1;
  }
  //开始通讯
   std:: string buffer="i am process A";
   ssize_t n = write(wfd,buffer.c_str(),buffer.size()+1);
   assert(n>=0);
   (void)n;

  close(wfd);
  return 0;
}
